package com.jk.lzy.service;

import com.jk.lzy.model.EmpBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.HashMap;

@FeignClient(value = "provider")
public interface SumService {

    // 分页 查询
   // @RequestMapping("emp/findEmp")
    @GetMapping("findEmp")
    HashMap<String, Object> findEmp(@SpringQueryMap EmpBean emp);
    // 新增
    @RequestMapping("emp/insertEmp")
    void insertEmp(EmpBean emp);
    // 删除
    @RequestMapping("emp/deleteEmp")
    void deleteEmp(@RequestParam Integer id);
    // 修改 回显
    @RequestMapping("emp/updateEmpFindId")
    EmpBean updateEmpFindId(@RequestParam Integer id);
}
